package lg.minecraft.plugin.testeconomy.storage;

import java.sql.*;

/**
 * @author langle__
 * @version 1.0
 */
public abstract class DataBaseStorage extends BaseStorage {

    public abstract Connection getConnection();

    public void close() throws SQLException {
        Connection connection = getConnection();
        if (connection != null && !connection.isClosed()) {
            connection.close();
        }
    }

}
